package cn.kgc.service.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.kgc.entity.Emp;
import cn.kgc.mapper.EmpMapper;
import cn.kgc.service.EmpService;

@Service
public class EmpServiceImpl implements EmpService {
	
	@Resource
	private EmpMapper empMapper;
	
	@Override
	public List<Emp> getAllEmp() {
		return empMapper.getAllEmp();
	}

	@Override
	public void addEmp(Emp emp) {
		empMapper.addEmp(emp);
	}

	@Override
	public Emp getEmpById(Integer id) {
		return empMapper.getEmpById(id);
	}

	@Override
	public void updateEmp(Emp emp) {
		empMapper.updateEmp(emp);
	}

	@Override
	public void deleteEmpById(Integer id) {
		empMapper.deleteEmpById(id);
	}



	
}
